<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->resource('grid','MebConsumptionController');
    //门诊充值记录
    $router->resource('record','FourRecordController');
    //住院充值记录
    $router->resource('rest','FourRestController');
    //退款记录
    $router->resource('refund','FourRefundController');
    //测试
    $router->resource('red','FourPatientController');
    $router->get('/', 'HomeController@index');
    $router->resource('users', 'UserController');
    $router->resource('doctor', 'FourDoctorController');
    $router->resource('department','FourDepartmentController');
    $router->resource('medicalCheck','FourMedicalCheckController');
    $router->resource('article','FourArticleController');
    $router->resource('user', 'FourAdminUserController');
    $router->resource('role', 'FourAdminRoleController');
    $router->resource('auth', 'FourAdminAuthController');
    $router->resource('user_auth', 'FourAdminUserAuthController');
    $router->resource('title', 'FourAdminTitleController');
    $router->resource('message', 'FourAdminMessageController');
    $router->resource('subscribe', 'FourSubscribeController');
    $router->resource('roster', 'FourRosteringController');
    $router->resource('password', 'FourAdminPswdController');
    $router->resource('campus','FourCampusController');
    $router->resource('hospital','FourHospitalController');
    $router->resource('appoint','FourAppointController');
    $router->resource('item','FourItemController');

});


